﻿using System;
using WindowsGame.Common.Static;

namespace WindowsGame.Common.Data
{
	public abstract class BaseData
	{
		public static void Initialize()
		{
			BaseRoot = String.Empty;
		}
		public static void Initialize(String root)
		{
			BaseRoot = root;
		}

		public static void LoadContent()
		{
			// Global generic data.
			var globalData = MyGame.Manager.ConfigManager.ConfigData;
			SplashDelay = globalData.SplashDelay;
			Platform = MyGame.Manager.DeviceManager.GetPlatform();
		}

		public static String BaseRoot { get; private set; }

		// Global generic data.
		public static UInt16 SplashDelay { get; private set; }
		public static Platform Platform { get; private set; }
	}
}